package cn.ycc1.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
/**
 * @author ycc
 * @date 2025/5/10
 */
@Controller
public class HomeController {

    @GetMapping("/")
    public String home() {
        return "home"; // 对应 /WEB-INF/views/home.jsp
    }

    @GetMapping("/hello")
    public String sayHello() {
        return "hello"; // 对应 /WEB-INF/views/hello.jsp
    }
}
